package com.xxgc.vfc.gateway.factory;

import com.xxgc.vfc.gateway.filter.TimeGatewayFilter;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;

/**
 * @Author:sjy
 * @Date :2023/10/31 - 10 - 31 - 16:52
 * 时间过滤器工厂
 */
@Component
public class TimeGatewayFilterFactory extends AbstractGatewayFilterFactory<Object> {

    @Override
    public GatewayFilter apply(Object config) {
        return new TimeGatewayFilter();
    }
}
